package ldh.im.rpc.connection;

import java.util.concurrent.Future;

public interface RpcConnection {

    <D, T> Future<T> write(RpcReadChannel rpcChannel, D data, long readTimeout);

    <D> void write(RpcReadChannel rpcChannel, D data, long readTimeout, RpcCallback rpcCallback);
}
